<ul id="commentmore" class="commentlist">
	<volist name="list" id="data">
	<li class="single_item">
		<div class="commentavatar">
			<empty name="data.cover_id">
			<img src="/Public/blog/images/user.png">
			<else />
			<img src="{$data.cover_id|get_cover='path'}" onerror="javascript:this.src='/Public/blog/images/user.png';">
			</empty>
		</div>
		<div class="commenttext">
			<div class="commentmeta">
				<span class="commentid">
					<a href="{:U('writer/'.get_useruuid($data['uid']))}" rel="external" class="external" target="_blank">{$data.nickname}</a>
				</span>
				<span class="commenttime">评论于 {$data.create_time|changedate}</span>
			</div>
			<div class="commentp"><p>{$data.content}</p></div>
		</div>
	</li>
	</volist>
</ul>
<div class="ias_trigger"><a href="javascript:;">More</a></div>
<script type="text/javascript">
$(function(){
	var page = 1;
	var aid = {$aid};
	
	$(".ias_trigger").on("click",function(){
		var now_page = page + 1;
		returncomment(now_page);
	});

	function returncomment(now_page){
		page = now_page;
		$.ajax({
			type: "POST",
			url: "{:U('Home/Comment/getmore')}",
			data: {page:page,aid:aid},
			success: function(html){
				if(html == "" || html == undefined || html == null){
					$('.ias_trigger a').html('没有更多评论！');
				}else{
					$('#commentmore').append(html);
				}
            }
		});
	}

});
</script>